<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<ul class="menu">
    <c:choose>

        <c:when test="${!registeredUserBean.loggedIn}">
            <ol>
                <li><a href="/EvIn/index.faces">Log In</a></li>

            </ol>
        </c:when>

        <c:otherwise>
            <li>${registeredUserBean.registeredUser.firstName}</li>
        </c:otherwise>

    </c:choose>

</ul>
<hr/>
<ul class="menu">
    <c:if test="${registeredUserBean.loggedIn}">
        <li><a href="/EvIn/contacts.faces">Contacts</a></li>

        <li><a href="/EvIn/event/event_list.faces">Events</a></li>

    </c:if>
</ul>
